package com.cleaningcloud.erp.service.impl;

import com.cleaningcloud.erp.api.domain.ErpWareCommodityNumber;
import com.cleaningcloud.erp.mapper.ErpWareCommodityNumberMapper;
import com.cleaningcloud.erp.service.IPublicCommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.beans.Transient;
import java.util.Collections;
import java.util.List;
@Service
public class PublicCommonServiceImpl implements IPublicCommonService {


    @Autowired
    private ErpWareCommodityNumberMapper wareCommodityNumberMapper;

    @Override
    public ErpWareCommodityNumber selectErpWareCommodityNumberByWareCommodityNumberId(Long wareCommodityNumberId) {
        return wareCommodityNumberMapper.selectErpWareCommodityNumberByWareCommodityNumberId(wareCommodityNumberId);
    }

    @Override
    public List<ErpWareCommodityNumber> selectErpWareCommodityNumberList(ErpWareCommodityNumber erpWareCommodityNumber) {
        return wareCommodityNumberMapper.selectErpWareCommodityNumberList(erpWareCommodityNumber);
    }

    @Override
    public int insertErpWareCommodityNumber(ErpWareCommodityNumber erpWareCommodityNumber) {
        return wareCommodityNumberMapper.insertErpWareCommodityNumber(erpWareCommodityNumber);
    }

    @Override
    public int updateErpWareCommodityNumber(ErpWareCommodityNumber erpWareCommodityNumber) {
        return wareCommodityNumberMapper.updateErpWareCommodityNumber(erpWareCommodityNumber);
    }

    @Override
    public int deleteErpWareCommodityNumberByWareCommodityNumberId(Long wareCommodityNumberId) {
        return wareCommodityNumberMapper.deleteErpWareCommodityNumberByWareCommodityNumberId(wareCommodityNumberId);
    }

    @Override
    public int deleteErpWareCommodityNumberByWareCommodityNumberIds(Long[] wareCommodityNumberIds) {
        return wareCommodityNumberMapper.deleteErpWareCommodityNumberByWareCommodityNumberIds(wareCommodityNumberIds);
    }

    @Override
    public ErpWareCommodityNumber selectByCommodityIdAndWareId(ErpWareCommodityNumber erpWareCommodityNumber) {
        return wareCommodityNumberMapper.selectByCommodityIdAndWareId(erpWareCommodityNumber);
    }
}
